package com.vframework.base.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.vframework.base.exception.BaseException;
import com.vframework.base.mapper.BaseMapper;
import com.vframework.base.model.LogBean;
import com.vframework.base.service.BaseService;
import com.vframework.system.menu.model.MenuBean;
@Service
@Transactional(rollbackFor = {Exception.class})
public class BaseServiceImpl implements BaseService {

	@Autowired
	protected BaseMapper baseMapper;

    @Override
    public void insertLog(LogBean logBean) throws BaseException {
        baseMapper.insertLog(logBean);
    }

    @Override
    public String getMaxId(Map<?, ?> paramMap) throws BaseException {
        return baseMapper.getMaxId(paramMap);
    }

    @Override
    public String getMaxIdLpad(Map<?, ?> paramMap) throws BaseException {
        return baseMapper.getMaxIdLpad(paramMap);
    }

    @Override
    public MenuBean getSessionMenu(Map<?, ?> paramMap) throws BaseException {
        return baseMapper.getSessionMenu(paramMap);
    }
}
